package com.tangyuan.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tangyuan.model.Movies;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tangyuan.model.Movies;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 小梁
 * @since 2020-12-03
 */
// @Repository
@Mapper
public interface MovieMapper extends BaseMapper<Movies> {


    List<Movies> selectListByIds(@Param("ids") List<Long> ids, @Param("userId") Long userId);

    List<Long> getVideoByUserNotAction(Long userId,Long videoId,Integer pageNum, Integer pageSize);

    List<Long> getLikeType(int method, List<Long> movieIds);
}
